package com.ant.backstage.facade.request.power;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel
public class PermissionAddRequest implements Serializable {

    @NotNull
    @ApiModelProperty(required = true, value = "权限标识", example = "add::permission")
    private String permission;

    @ApiModelProperty( value = "权限描述", example = "新增角色权限")
    private String description;

    @ApiModelProperty( value = "权限URL")
    private String permissionUrl;

    @ApiModelProperty( value = "加载组件")
    private String component;

    @NotNull
    @ApiModelProperty(required = true, value = "权限名称")
    private String commentPermission;

    @ApiModelProperty( value = "图标展示")
    private String icon;

    @ApiModelProperty( value = "权限类型")
    private String menu;

    @ApiModelProperty( value = "权限父ID")
    private String parentId;

    @ApiModelProperty(required = true, value = "权限所属的角色id", example = "1,2,3,4")
    private List<String> roleIds;  //权限所属的角色id   1,2,3,4

    @NotNull
    @ApiModelProperty(required = true, value = "权限狀態", example = "1")
    private Integer status;  //权限所属的角色id   1,2,3,4

    private String creator;
    private String editor;
    private Date createTime;
    private Date lastUpdateTime;

}
